﻿using System.Windows;
using System.Windows.Controls;

namespace MC.Warehouse.Core
{
    public class BaseStyleSelector :StyleSelector
    {
        public override Style SelectStyle(object item, DependencyObject container)
        {
            //var data = item as XmlLinkedNode;
            //FrameworkElement element = container as FrameworkElement;
            //if (data.Attributes["icon"] != null)
            //{
            //    return MenuImageItemStyle;
            //}
            //if (data.Attributes["type"] != null)
            //{
            //    return MenuItemDefaultStyle;
            //}
            //return MenuItemStyle;
            return null;
        }

        public Style MenuItemStyle { get; set; }
        public Style MenuImageItemStyle { get; set; }
        public Style MenuItemDefaultStyle { get; set; }
    }
}
